import { IsNotEmpty, MaxLength } from 'class-validator'

export class CreatePermissionDto {
  @IsNotEmpty({
    message: '权限code不能为空',
  })
  @MaxLength(20, {
    message: '权限code最长为 20 字符',
  })
  code: string

  @MaxLength(100, {
    message: '权限描述最长为 100 字符',
  })
  description: string
}
